<template>
    <div id="bigFullScreen">
        <div class="bigFullTop">
            <img src="../../assets/img/BigFull/ksh_3.png" alt="" class="topLeftImg">
            <span>能耗监测平台</span>
            <img src="../../assets/img/BigFull/ksh_4.png" alt="" class="topRightImg">
        </div>
        <div class="bigFullCon">
            <div class="conLeft">
                <div class="leftCon1">
                    <img src="../../assets/img/BigFull/ksh_1.png" alt="" style="width: 100%;height: 100%;">
                </div>
            </div>
            <div class="conTer"></div>
            <div class="conRight"></div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "",
        data(){
            return {

            }
        },
        created(){

        },
        beforeCreate () {
            this.$nextTick(function () {
                document.querySelector('.content-box').setAttribute('style', 'left: 0;top:0;-webkit-transition:none;transition:none;padding-bottom:0;')
                document.querySelector('.header').setAttribute('style', 'display: none;')
                document.querySelector('.tags').setAttribute('style', 'display: none;')
            })
            // document.querySelector('.content-box').setAttribute('style', ' left: 0;')
        },
        mounted(){

            // this.launchFullscreen(document.documentElement) // 整个页面进入全屏
            // this.launchFullscreen(document.getElementById("bigFullScreen")) //某个元素进入全屏
        },
        methods:{
            // 全屏事件
            launchFullscreen(element){
                console.log(element)
                if (element.requestFullscreen) {
                    element.requestFullscreen()
                } else if (element.mozRequestFullScreen) {
                    element.mozRequestFullScreen()
                } else if (element.msRequestFullscreen) {
                    element.msRequestFullscreen()
                } else if (element.webkitRequestFullscreen) {
                    element.webkitRequestFullScreen()
                }
            }
        }
    }
</script>

<style scoped>
   #bigFullScreen{
       width: 100%;
       height: 100%;
       background-image: url("../../assets/img/BigFull/kshbj.png");
       background-size: 100% 100%;
       background-repeat: no-repeat;
       position: relative;
       box-sizing: border-box;
   }
   .bigFullTop{
       text-align: center;
       color: #06d3cf;
       font-size: 28px;
       line-height: 41px;
       position: relative;
   }
.bigFullTop .topLeftImg,.bigFullTop .topRightImg{
    width: 35%;
}
   .bigFullTop .topLeftImg{
       position: absolute;
       top: 10px;
       left: 10px;
   }
   .bigFullTop .topRightImg{
       position: absolute;
       top: 10px;
       right: 10px;
   }
    .bigFullCon{
        height: calc(100% - 41px);
        padding: 10px 10px 5px 10px;
        box-sizing: border-box;
    }
    .conLeft,.conRight{
        width: 23%;
        height: 100%;
    }
   .conLeft{
       float: left;
   }
   .conRight{
       float: right;
   }
    .conTer{
        width: calc(54% - 20px);
        height: 100%;
        float: left;
        position: relative;
        margin: 0 10px;
        padding: 3px;
        background: rgba(1,51,102,0.3);
        border: 1px solid #1c487a;
        box-sizing: border-box;
    }
    .leftCon1{
        height: 110px;
        position: relative;
    }
</style>